package com.example.cafe.work.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hua
 * @since 2024-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order")
@AllArgsConstructor
@NoArgsConstructor
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "order_id", type = IdType.ASSIGN_ID)
    private String orderId;

    private String userId;

    private String cofId;

    /**
     * 数量
     */
    private Integer cofCount;

    /**
     * 总价
     */
    private Integer cofTotal;

    /**
     * 创建日期
     */
    private String createTime;

    /**
     * 状态id
     */
    private Integer stateId;

    public Order(String orderId, String userId, String cofId, Integer cofCount, Integer cofTotal, String createTime) {
        this.orderId = orderId;
        this.userId = userId;
        this.cofId = cofId;
        this.cofCount = cofCount;
        this.cofTotal = cofTotal;
        this.createTime = createTime;
    }
}
